package com.jzlin.funhub.admin.common.consts;

/**
 * Redis常量.
 *
 * @author linjz
 * @since 2025/5/28
 */
public interface RedisConst {

    interface Prefix {
        String CACHE = "ce:";
        String LOCK = "lk:";
    }

    interface CACHE_KEY {
        String QUESTION_CATEGORY_TREE = Prefix.CACHE + "question:category:tree";
        String ARTICLES_CATEGORY_COUNT = Prefix.CACHE + "article:category:count:";
        String ARTICLES_CATEGORY_TREE = Prefix.CACHE + "article:category:tree";
        String CAPTCHA = Prefix.CACHE + "captcha:";
    }

    interface LOCK_KEY {
        String ARTICLES_TAG = Prefix.LOCK + "article:tag";
    }
}
